package com.ruoyi.utli.video;

import com.ruoyi.common.utils.StringUtils;

public class PreviewURLsRequest {
	private String cameraIndexCode;
	private Integer streamType;
	private String protocol;
	private Integer transmode;
	private String expand;
	private String recordLocation;
	private String beginTime;
	private String endTime;
	private String uuid;
	private String streamform;
	private Integer lockType;
	public String getCameraIndexCode() {
		return cameraIndexCode;
	}

	public void setCameraIndexCode(String cameraIndexCode) {
		this.cameraIndexCode = cameraIndexCode;
	}

	public Integer getStreamType() {
		return streamType;
	}

	/**
	 * 码流类型，0:主码流 1:子码流 2:第三码流 参数不填，默认为主码流
	 */
	public void setStreamType(Integer streamType) {
		this.streamType = StringUtils.isNotNull(streamType)?streamType:0;
	}

	public String getProtocol() {
		return protocol;
	}

	/**
	 * 取流协议（应用层协议），“hik”:HIK私有协议，使用视频SDK进行播放时，
	 * 传入此类型；“rtsp”:RTSP协议；“rtmp”:RTMP协议；“hls”:HLS协议
	 * （HLS协议只支持海康SDK协议、EHOME协议、ONVIF协议接入的设备；只支持H264视频编码和AAC音频编码；
	 * 云存储版本要求v2.2.4及以上的2.x版本，或v3.0.5及以上的3.x版本；ISC版本要求v1.2.0版本及以上，
	 * 需在运管中心-视频联网共享中切换成启动平台内置VOD）。
	 * 参数不填，默认为RTSP协议
	 */
	public void setProtocol(String protocol) {
		this.protocol = StringUtils.isNotEmpty(protocol)?protocol:"rtsp" ;
	}

	public Integer getTransmode() {
		return transmode;
	}

	/**
	 * 传输协议（传输层协议），0:UDP 1:TCP
	 * 默认是TCP 注：EHOME设备回放只支持TCP传输 GB28181 2011及以前版本只支持UDP传输
	 */
	public void setTransmode(Integer transmode) {
		this.transmode = StringUtils.isNotNull(transmode)?transmode:1;
	}

	public String getExpand() {
		return expand;
	}

	public void setExpand(String expand) {
		this.expand = expand;
	}

	public String getRecordLocation() {
		return recordLocation;
	}

	public void setRecordLocation(String recordLocation) {
		this.recordLocation = recordLocation;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getStreamform() {
		return streamform;
	}

	public void setStreamform(String streamform) {
		this.streamform = streamform;
	}

	public Integer getLockType() {
		return lockType;
	}

	public void setLockType(Integer lockType) {
		this.lockType = lockType;
	}
}
